<!--_meta 作为公共模版分离出去-->
<!DOCTYPE HTML>
<html xmlns:th="http://www.w3.org/1999/xhtml">
<head>
	<meta charset="utf-8">
	<meta name="renderer" content="webkit|ie-comp|ie-stand">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
	<meta http-equiv="Cache-Control" content="no-siteapp" />
	<link rel="Bookmark" href="favicon.ico" >
	<link rel="Shortcut Icon" href="favicon.ico" />
	<!--[if lt IE 9]>
	<script type="text/javascript" src="/lib/html5.js"></script>
	<script type="text/javascript" src="/lib/respond.min.js"></script>
	<![endif]-->
	<link rel="stylesheet" type="text/css" href="/static/h-ui/css/H-ui.min.css" />
	<link rel="stylesheet" type="text/css" href="/lib/Hui-iconfont/1.0.9/iconfont.css" />
	<link rel="stylesheet" type="text/css" href="/static/business/css/style.css" />
	<!--[if IE 6]>
	<script type="text/javascript" src="http://lib.h-ui.net/DD_belatedPNG_0.0.8a-min.js" ></script>
	<script>DD_belatedPNG.fix('*');</script><![endif]-->
	<!--/meta 作为公共模版分离出去-->
	<style>
		html,body{
			/*overflow: hidden;*/
		}
	</style>
	<title>家政人员 - 查看详情 - h-ui.admin.pro v1.0</title>
	<meta name="keywords" content="">
	<meta name="description" content="">
</head>
<body>
	<div class="wap-container">
		<nav class="breadcrumb" style="background-color:#fff;padding: 0 24px">
			首页
			<span class="c-gray en">/</span>
			家政人员
			<span class="c-gray en">/</span>
			<span style="color:  #5a98de" id="name2"></span>
			<!-- <a class="btn btn-success radius f-r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a> -->
			<div style="float: right;">
				<button  th:if="${datas.recommend=='0'}" onclick="recommend_add($('#houseKeeperId').val());" class="btn btn-default radius btn-secondary">推荐简历</button>
				<button  th:if="${datas.recommend=='1'}"  class="btn btn-default radius btn-success">我已推荐</button>


				<button  th:if="${datas.collect=='0'}" onclick="collect_add($('#houseKeeperId').val());" class="btn btn-default radius btn-secondary">收藏简历</button>
				<button  th:if="${datas.collect=='1'}"  onclick="collect_del($('#houseKeeperId').val());" class="btn btn-default radius">取消收藏</button>
				<button onclick="edit($('#houseKeeperId').val());" class="btn btn-default radius btn-secondary">编辑简历</button>
			</div>
			
		</nav>
		<style>
			.house_border{
				border: 1px solid #ddd;
				border-radius: 3px;
				padding:20px 5px;
				text-align: center;
			}
			.type_bq{
				width: 30px;height: 30px;position: absolute;bottom: -14px;right:-10px;border-radius: 50%;border:1px solid #ddd;background: #fff;text-align: center;line-height: 30px
			}
			.aljs{
				border-top:1px solid #ddd;
				text-align: left;
				padding: 0 10px;
				font-size: 14px;
			}
			.mid-font{
				padding-top: 5px;
				padding-bottom: 5px;
			}
			.dz-btn{
			    padding: 0;
    			height: 20px;
			}
			 body{
				 background:url(/temp/bg.png);
			 }

		</style>
		<article class="Hui-admin-content clearfix"  style="opacity:0.9;">
			<div class="panel">
				<div class="panel-body">
					<input type="hidden" th:value="${houseKeeperId}" id="houseKeeperId"/>
					<input type="hidden" th:value="${isMy}" id="isMy"/>

					<div class="row clearfix">
						<div class="col-xs-12 col-sm-3 col-md-3 house_border">
							
							<div class="col-6" style="margin: 0 auto;position: relative;border: 1px solid #ddd;padding: 5px;">
								<img width="100%" th:src="${datas.workpic}" onerror="onerror=null;src='/temp/default.jpg'"  alt="">
								<div class="type_bq" th:if="${datas.highgrade==1}"><p class="c-success" >优质</p></div>
							</div>
							<h3><span style="color:  #5a98de" id="name"></span></h3>
							<div class="row" style="margin-bottom: 10px">
								<div class="col-xs-6 col-sm-6 col-md-6">身高：
									<span style="color:  #5a98de" th:text="${datas.height}"></span>
								</div>
								<div class="col-xs-6 col-sm-6 col-md-6">
									体重：<span style="color:  #5a98de" th:text="${datas.weight}"></span>
								</div>
							</div>
							<div class="row">
								<div class="col-xs-12 col-sm-12 col-md-12">

									<div class="aljs" style="padding-top: 8px;" >阿姨的优势介绍</div>
								</div>
							</div>
							<div class="row" th:if="${isMy eq 'my'}">
								<div class="col-xs-12 col-sm-12 col-md-12">
									<div class="aljs" style="border: none" th:text="${datas.presentation2}">
									</div>
								</div>
							</div>
							<div class="row" th:if="${isMy ne 'my'}">
								<div class="col-xs-12 col-sm-12 col-md-12">
									<div class="aljs" style="border: none" th:text="${datas.presentation}">
									</div>
								</div>
							</div>
						</div>
						<div class="col-xs-12 col-sm-6 col-md-6">
							<div class="row" style="margin: 0;margin-top: 10px">
								<div class="col-xs-10 col-sm-10 col-md-10" style="text-align: left;">
									<h3 style="padding-top: 0">基本信息</h3>
								</div>
							</div>
							<div class="row" style="margin: 0;margin-left: 25px;">
								<div class="col-xs-6 col-sm-6 col-md-6 mid-font">
									专业：<span style="color:  #5a98de" id="professional"></span>
								</div>
								<div class="col-xs-6 col-sm-6 col-md-6 mid-font">
									经验：<span style="color:  #5a98de" id="experience"></span>
								</div>
							</div>
							<div class="row" style="margin: 0;margin-left: 25px;">
								<div class="col-xs-4 col-sm-4 col-md-4 mid-font">
									性别：<span style="color:  #5a98de" th:if="${datas.sex==1}">男</span>
									<span style="color:  #5a98de" th:if="${datas.sex==2}">女</span>
								</div>
								<div class="col-xs-4 col-sm-4 col-md-4 mid-font">
									年龄：
									<span style="color:  #5a98de"  th:if="${datas.birthday}">
										<span style="color:  #5a98de" th:text="${age}"></span>
									</span>
								</div>
								<div class="col-xs-4 col-sm-4 col-md-4 mid-font">
									生肖：<span style="color:  #5a98de" th:text="${datas.zodiac}"></span>
								</div>
							</div>
							<div class="row" style="margin: 0;margin-left: 25px;">
								<div class="col-xs-4 col-sm-4 col-md-4 mid-font">
									籍贯：<span style="color:  #5a98de" id="nativeplace"></span>
								</div>
								<div class="col-xs-4 col-sm-4 col-md-4 mid-font">
									学历：<span style="color:  #5a98de" id="education"></span>
								</div>
								<div class="col-xs-4 col-sm-4 col-md-4 mid-font">
									食宿：<span style="color:  #5a98de" id="boardandlodging"></span>
								</div>
							</div>
							<div class="row" style="margin: 0;margin-left: 25px;">
								<div class="col-xs-6 col-sm-6 col-md-6 mid-font">
									语言：<span style="color:  #5a98de" id="language"></span>
								</div>
								<div class="col-xs-6 col-sm-6 col-md-6 mid-font">
									做饭：<span style="color:  #5a98de" id="cook"></span>
								</div>
							</div>
							<div class="row" style="margin: 0;margin-top: 10px">
								<div class="col-xs-10 col-sm-10 col-md-10" style="text-align: left;">
									<h3 style="padding-top: 0">技能专长</h3>
								</div>
							</div>
							<div class="row" style="margin: 0;margin-left: 40px;" id="skill">
							</div>
							<div class="row" style="margin: 0;margin-top: 10px">
								<div class="col-xs-10 col-sm-10 col-md-10" style="text-align: left;">
									<h3 style="padding-top: 0">工作经历</h3>
								</div>
							</div>
							<div class="row" style="margin: 0;margin-left: 25px;" th:each="prod:${workexPerienceList}">
								<div class="col-xs-12 col-sm-12 col-md-12 mid-font">
									<span style="color:  #5a98de"  th:text="${#dates.format(prod.worktimestart, 'yyyy-MM-dd')}"></span>
									至
									<span style="color:  #5a98de"  th:text="${#dates.format(prod.worktimeend, 'yyyy-MM-dd')}"></span>
									<span style="color:  #5a98de"  th:text="${prod.content}"></span>
								</div>
							</div>
							<div class="row" style="margin: 0;margin-top: 10px">
								<div class="col-xs-10 col-sm-10 col-md-10" style="text-align: left;">
									<h3 style="padding-top: 0">资格证书</h3>
								</div>
							</div>
							<div class="rollpic cl" th:if="${certificateList}">
								<div class="rollpicshow" >
									<ul th:each="prod:${certificateList}">
										<li><img width="120" height="93" title="" th:src="${prod.certificatepic}"></li>
									</ul>
								</div>
							</div>
							<div class="row" style="margin: 0;margin-top: 10px">
								<div class="col-xs-10 col-sm-10 col-md-10" style="text-align: left;">
									<h3 style="padding-top: 0">培训情况</h3>
								</div>
							</div>
							<div class="row" style="margin: 0;margin-left: 25px;" th:each="prod:${trainExperienceList}">
								<div class="col-xs-12 col-sm-12 col-md-12 mid-font" style="font-weight: 600">
									课程名称：<span style="color:  #5a98de"  th:text="${prod.curriculumname}"></span>
								</div>
								<div class="col-xs-12 col-sm-12 col-md-12 mid-font">
									结课时间：<span style="color:  #5a98de"  th:text="${#dates.format(prod.traintimeend, 'yyyy-MM-dd')}"></span>
								</div>
								<div class="col-xs-12 col-sm-12 col-md-12 mid-font">
									培训机构：<span style="color:  #5a98de"  th:text="${prod.traininginstitution}"></span>
								</div>
								<div class="col-xs-12 col-sm-12 col-md-12 mid-font">
									考评情况：<span style="color:  #5a98de"  th:text="${prod.checkandevaluate}"></span>
								</div>
								<div class="row" style="margin: 0;margin-left: 40px;border-bottom: 1px solid #ddd;"></div>
							</div>


							<div class="row" style="margin: 0;margin-left: 40px;border-bottom: 1px solid #ddd;"></div>
						</div>
						<div class="col-xs-12 col-sm-3 col-md-3 " style="padding: 0">
							<div class="row house_border" style="margin: 0;">
								<div class="col-xs-10 col-sm-10 col-md-10" style="margin-left: 10px;text-align: left;">
									<h3 style="padding-top: 0">求职信息</h3>
								</div>
								<div class="col-xs-10 col-sm-10 col-md-10" style="margin-left: 10px;text-align: left;">
									工作类型：<span style="color:  #5a98de" id="worktype"></span>
								</div>
								<div class="col-xs-10 col-sm-10 col-md-10" style="margin-left: 10px;text-align: left;">
									工作时间：<span style="color:  #5a98de" id="worktime"></span>
								</div>
								<div class="col-xs-10 col-sm-10 col-md-10" style="margin-left: 10px;text-align: left;">
									工作状态：<span style="color:  #5a98de" id="workstate"></span>
								</div>
								<div class="col-xs-10 col-sm-10 col-md-10" style="margin-left: 10px;text-align: left;">
									工资待遇：<span style="color:  #5a98de" id="salarystart"></span>-<span style="color:  #5a98de" id="salaryend"></span>
								</div>
								<div class="col-xs-10 col-sm-10 col-md-10" style="margin-left: 10px;text-align: left;">
									工作区域：<span style="color:  #5a98de" th:text="${datas.workarea}"></span>
								</div>
							</div>

							<div class="row house_border" style="margin: 0;margin-top: 15px">
								<div class="col-xs-10 col-sm-10 col-md-10" style="margin-left: 10px;text-align: left;">
									当前收藏人数：<span style="color: #5a98de" th:text="${datas.collectall}"></span>人
								</div>
								<div class="col-xs-10 col-sm-10 col-md-10" style="margin-left: 10px;text-align: left;">
									近七天被推荐：<span style="color: #5a98de" th:text="${datas.recommendall}"></span>次
								</div>
								<div class="col-xs-10 col-sm-10 col-md-10" style="margin-left: 10px;text-align: left;">
									近七天有意向：<span style="color:  #5a98de">1人</span>
								</div>
								<div class="col-xs-10 col-sm-10 col-md-10" style="margin-left: 10px;text-align: left;">
									进行中的服务：<span style="color:  #5a98de">2个</span>
								</div>
							</div>

							<div class="row house_border" style="margin: 0;margin-top: 15px">
								<div class="col-xs-10 col-sm-10 col-md-10" style="margin-left: 10px;text-align: left;">
									<h5 style="padding-top: 0">联系方式</h5>
								</div>
								<div class="col-xs-10 col-sm-10 col-md-10" style="margin-left: 10px;text-align: left;">
									联系电话&nbsp;&nbsp;：<span style="color:  #5a98de" th:text="${datas.phone1}"></span><br/>
									联系电话2：<span style="color:  #5a98de" th:text="${datas.phone2}"></span>
								</div>
								<div class="col-xs-10 col-sm-10 col-md-10" style="margin-left: 10px;text-align: left;">
									<h5 style="padding-top: 0">紧急联系人</h5>
								</div>
								<div class="col-xs-10 col-sm-10 col-md-10" style="margin-left: 10px;text-align: left;" th:each="prod:${emergencyContactList}">
									<span th:text="${prod.name}"></span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:<span style="color:  #5a98de"  th:text="${prod.phone}"></span>
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
		</article>
	</div>
	<!--_footer 作为公共模版分离出去-->
	<script type="text/javascript" src="/lib/jquery/1.9.1/jquery.min.js"></script>
	<script type="text/javascript" src="/lib/layer/3.1.1/layer.js"></script>
	<script type="text/javascript" src="/static/h-ui/js/H-ui.js"></script>
	<script type="text/javascript" src="/static/h-ui/js/jcarousellite.min.js"></script>
	<!--/_footer /作为公共模版分离出去-->

	<!--请在下方写此页面业务相关的脚本-->
	<script type="text/javascript" src="/lib/datatables/1.10.15/jquery.dataTables.min.js"></script>
	<script type="text/javascript" src="/lib/laypage/1.2/laypage.js"></script>
	<script type="text/javascript" src="/static/business/js/main.js"></script>
	<!--/请在上方写此页面业务相关的脚本-->
    <script type="text/javascript" src="/lib/lightbox2/2.8.1/js/lightbox.min.js"></script>
	<script type="text/javascript">
		var houseKeeperId=$('#houseKeeperId').val();
        function getDataList(houseKeeperId,url){
            $.ajax({
                url: url,// 跳转到 action, 换成自己的接口
                data: {"houseKeeperId":houseKeeperId},
                type: 'post',
                cache: false,
                dataType: 'json', // 不一定非要json，可以是html，后台封好结构后，直接扔前台
                success: function(respData) {
                    if(respData.result){
                        var data=respData.datas;
                        var highgrade =data.highgrade;
                        console.log("-------"+data.highgrade);
                        if(highgrade=="1"){
                            highgrade="优质";
                        }

                        var workpic=data.workpic==null?"":data.workpic;
                        var name=data.name==null?"":data.name;
                        var phone1=data.phone1==null?"":data.phone1;
                        var salarystart=data.salarystart==null?"":data.salarystart;
                        var salaryend=data.salaryend==null?"":data.salaryend;
                        var workarea=data.workarea==null?"":data.workarea;
                        var id=data.id==null?"":data.id;

                        var professional=getProfessional(data.professional);
                        var exp=getExp(data.experience);
                        var nativeplace=getNativePlace(data.nativeplace);
                        var education=getEducation(data.education);
                        var boardandlodging=getBoardandlodging(data.boardandlodging);
                        var language=getLanguage(data.language);
                        var cook=getCook(data.cook);
                        var worktype=getWorktype(data.worktype);
                        var worktime=getWorktime(data.worktime);
                        var workstate=getWorkstate(data.workstate);
                        var certificateArr=data.certificate.split(",");
                        var isMy=$("#isMy").val();
                        var skillArr
                        if(isMy=="my"){
                            skillArr=data.skill2.split(",");
                        }else {
                            skillArr=data.skill.split(",");
						}
                        var skillArrHtml=""
						if(skillArr!=null&&skillArr!=""){
							for(var i=0;i<skillArr.length;i++){
                                skillArrHtml+=" <button class=\"btn btn-default radius btn-secondary dz-btn\">"+skillArr[i]+"</button>"
							}
						}
                        $('#skill').html(skillArrHtml);

                        $('#name').html(name);
                        $('#name2').html(name);
                        $('#professional').html(professional);
                        $('#experience').html(exp);
                        $('#nativeplace').html(nativeplace);

                        $('#education').html(education);
                        $('#boardandlodging').html(boardandlodging);
                        $('#cook').html(cook);
                        $('#language').html(language);

                        $('#worktype').html(worktype);
                        $('#worktime').html(worktime);
                        $('#workstate').html(workstate);
                        $('#salarystart').html(salarystart);
                        $('#salaryend').html(salaryend);



                    }

				},
                error: function(respData){ // ajax的error状态
                console.log(respData);
                }
            });
        }

        function getProfessional(arrStr) {
            var professional =arrStr;
            var professionalStr = "";
            if(professional!='undefined'&&professional!=""){
                var arr=professional.split(",");
                console.log(arr);
                for(var i=0;i<arr.length;i++){
                    if(arr[i]=="1"){
                        professionalStr=professionalStr+"育婴师"+"/";
                    }
                    if(arr[i]=="2"){
                        professionalStr=professionalStr+"月嫂"+"/";
                    }
                    if(arr[i]=="3"){
                        professionalStr=professionalStr+"家务助理"+"/";
                    }
                    if(arr[i]=="4"){
                        professionalStr=professionalStr+"全能阿姨"+"/";
                    }
                    if(arr[i]=="5"){
                        professionalStr=professionalStr+"老年看护"+"/";
                    }
                    if(arr[i]=="6"){
                        professionalStr=professionalStr+"涉外家政"+"/";
                    }
                    if(arr[i]=="7"){
                        professionalStr=professionalStr+"家庭司机"+"/";
                    }
                    if(arr[i]=="8"){
                        professionalStr=professionalStr+"儿童家教"+"/";
                    }
                    if(arr[i]=="9"){
                        professionalStr=professionalStr+"家庭厨师"+"/";
                    }
                }
                professionalStr = professionalStr.substring(0, professionalStr.length - 1);
            }
            return professionalStr;
        }
        function getExp(str) {
            if(str!=null&&str!=""){
                if(str=="1"){
                    return "新手";
                }
                if(str=="2"){
                    return "3年以下";
                }
                if(str=="3"){
                    return "3-5年";
                }
                if(str=="4"){
                    return "5年以上";
                }
                if(str=="5"){
                    return "10年以上";
                }
            }
        }
        function getNativePlace(str) {
            if(str!=null&&str!=""){
                if(str=="1"){
                    return "北京市";
                }
                if(str=="2"){
                    return "天津市";
                }
                if(str=="3"){
                    return "上海市";
                }
                if(str=="4"){
                    return "重庆市";
                }
                if(str=="5"){
                    return "黑龙江";
                }
                if(str=="6"){
                    return "吉林省";
                }
                if(str=="7"){
                    return "辽宁省";
                }
                if(str=="8"){
                    return "河北省";
                }
                if(str=="9"){
                    return "河南省";
                }
                if(str=="10"){
                    return "山东省";
                }
                if(str=="11"){
                    return "山西省";
                }
                if(str=="12"){
                    return "安徽省";
                }
                if(str=="13"){
                    return "江西省";
                }
                if(str=="14"){
                    return "江苏省";
                }
                if(str=="15"){
                    return "浙江省";
                }
                if(str=="16"){
                    return "福建省";
                }
                if(str=="17"){
                    return "广东省";
                }
                if(str=="18"){
                    return "湖南省";
                }
                if(str=="19"){
                    return "湖北省";
                }
                if(str=="20"){
                    return "海南省";
                }
                if(str=="21"){
                    return "云南省";
                }
                if(str=="22"){
                    return "贵州省";
                }
                if(str=="23"){
                    return "四川省";
                }
                if(str=="24"){
                    return "青海省";
                }
                if(str=="25"){
                    return "甘肃省";
                }
                if(str=="26"){
                    return "陕西省";
                }
                if(str=="27"){
                    return "内蒙古";
                }
                if(str=="28"){
                    return "新疆";
                }
                if(str=="29"){
                    return "广西";
                }
                if(str=="30"){
                    return "宁夏";
                }
                if(str=="31"){
                    return "西藏";
                }
                if(str=="32"){
                    return "香港";
                }
                if(str=="33"){
                    return "澳门";
                }
                if(str=="34"){
                    return "台湾";
                }
                if(str=="35"){
                    return "海外地区";
                }
                if(str=="36"){
                    return "菲律宾";
                }
                if(str=="37"){
                    return "印尼";
                }
                if(str=="38"){
                    return "缅甸";
                }
                if(str=="39"){
                    return "泰国";
                }
            }
        }
        function getEducation(str) {
            if(str!=null&&str!=""){
                if(str=="1"){
                    return "初中";
                }
                if(str=="2"){
                    return "高中";
                }
                if(str=="3"){
                    return "中专";
                }
                if(str=="4"){
                    return "大专";
                }
                if(str=="5"){
                    return "本科";
                }
                if(str=="6"){
                    return "本科以上";
                }
                if(str=="7"){
                    return "其他";
                }
            }
        }
        function getBoardandlodging(str) {
            if(str!=null&&str!=""){
                if(str=="1"){
                    return "不限";
                }
                if(str=="2"){
                    return "可住家";
                }
                if(str=="3"){
                    return "不住家";
                }
            }
        }
        function getLanguage(arrStr) {
            var language =arrStr;
            var languageStr = "";
            if(language!='undefined'&&language!=""){
                var arr=language.split(",");
                console.log(arr);
                for(var i=0;i<arr.length;i++){
                    if(arr[i]=="1"){
                        languageStr=languageStr+"普通话"+"/";
                    }
                    if(arr[i]=="1"){
                        languageStr=languageStr+"四川话"+"/";
                    }
                    if(arr[i]=="3"){
                        languageStr=languageStr+"上海话"+"/";
                    }
                    if(arr[i]=="4"){
                        languageStr=languageStr+"东北话"+"/";
                    }
                    if(arr[i]=="5"){
                        languageStr=languageStr+"广东话"+"/";
                    }
                    if(arr[i]=="6"){
                        languageStr=languageStr+"客家话"+"/";
                    }
                    if(arr[i]=="7"){
                        languageStr=languageStr+"闽南话"+"/";
                    }
                    if(arr[i]=="8"){
                        languageStr=languageStr+"英语"+"/";
                    }
                    if(arr[i]=="9"){
                        languageStr=languageStr+"日语"+"/";
                    }
                    if(arr[i]=="10"){
                        languageStr=languageStr+"其他外语"+"/";
                    }
                }
                languageStr = languageStr.substring(0, languageStr.length - 1);
            }
            return languageStr;
        }
        function getCook(arrStr) {
            var cook =arrStr;
            var cookStr = "";
            if(cook!='undefined'&&cook!=""){
                var arr=cook.split(",");
                console.log(arr);
                for(var i=0;i<arr.length;i++){
                    if(arr[i]=="1"){
                        cookStr=cookStr+"上海菜"+"/";
                    }
                    if(arr[i]=="2"){
                        cookStr=cookStr+"浙江菜"+"/";
                    }
                    if(arr[i]=="3"){
                        cookStr=cookStr+"川菜"+"/";
                    }
                    if(arr[i]=="4"){
                        cookStr=cookStr+"粤菜"+"/";
                    }
                    if(arr[i]=="5"){
                        cookStr=cookStr+"江苏菜"+"/";
                    }
                    if(arr[i]=="6"){
                        cookStr=cookStr+"东北菜"+"/";
                    }
                    if(arr[i]=="7"){
                        cookStr=cookStr+"鲁菜"+"/";
                    }
                    if(arr[i]=="8"){
                        cookStr=cookStr+"潮州菜"+"/";
                    }
                    if(arr[i]=="9"){
                        cookStr=cookStr+"湘菜"+"/";
                    }
                    if(arr[i]=="10"){
                        cookStr=cookStr+"面食"+"/";
                    }
                    if(arr[i]=="11"){
                        cookStr=cookStr+"西餐"+"/";
                    }
                    if(arr[i]=="12"){
                        cookStr=cookStr+"海鲜"+"/";
                    }
                    if(arr[i]=="13"){
                        cookStr=cookStr+"煲汤"+"/";
                    }
                    if(arr[i]=="14"){
                        cookStr=cookStr+"其他"+"/";
                    }
                }
                cookStr = cookStr.substring(0, cookStr.length - 1);
            }
            return cookStr;
        }
        function getWorktype(str) {
            if(str!=null&&str!=""){
                if(str=="1"){
                    return "全职";
                }
                if(str=="2"){
                    return "兼职";
                }

            }
        }
        function getWorktime(str) {
            if(str!=null&&str!=""){
                if(str=="1"){
                    return "全天24小时";
                }
                if(str=="2"){
                    return "07:00-19:00";
                }
                if(str=="3"){
                    return "07:00-12:00";
                }
                if(str=="4"){
                    return "12:00-14:00";
                }
                if(str=="5"){
                    return "12:00-19:00";
                }

            }
        }
        function getWorkstate(str) {
            if(str!=null&&str!=""){
                if(str=="1"){
                    return "待岗";
                }
                if(str=="2"){
                    return "上岗";
                }
                if(str=="3"){
                    return "培训中";
                }
                if(str=="4"){
                    return "已离职";
                }
                if(str=="5"){
                    return "黑名单";
                }

            }
        }
        function getCertificate(str) {
            if(str!=null&&str!=""){
                if(str=="1"){
                    return "身份证";
                }
                if(str=="2"){
                    return "健康证";
                }
                if(str=="3"){
                    return "催乳证";
                }
                if(str=="4"){
                    return "小儿推拿证";
                }
                if(str=="5"){
                    return "月子餐证";
                }
                if(str=="6"){
                    return "产后康复正";
                }if(str=="7"){
                    return "其他国家签证";
                }
                if(str=="8"){
                    return "母婴护理正";
                }
                if(str=="9"){
                    return "初级育婴师证";
                }
                if(str=="10"){
                    return "高级育婴师证";
                }
                if(str=="11"){
                    return "早教证";
                }if(str=="12"){
                    return "幼师证";
                }
                if(str=="13"){
                    return "教师证";
                }
                if(str=="14"){
                    return "驾驶证";
                }
                if(str=="15"){
                    return "管家证";
                }
                if(str=="16"){
                    return "厨师证";
                }
                if(str=="17"){
                    return "公共营养师证";
                }
                if(str=="18"){
                    return "护士证";
                }if(str=="19"){
                    return "护工证";
                }
                if(str=="20"){
                    return "养老护理证";
                }
                if(str=="21"){
                    return "护照";
                }
                if(str=="22"){
                    return "港澳通行证";
                }if(str=="23"){
                    return "美国签证";
                }
                if(str=="24"){
                    return "英国签证";
                }
                if(str=="25"){
                    return "澳大利亚其签证";
                }
                if(str=="26"){
                    return "加拿大签证";
                }
                if(str=="27"){
                    return "日本签证";
                }




            }
        }
        /*推荐-删除*/
        function recommend_del(id){
            layer.confirm('确认要取消推荐吗？',function(index){
                $.ajax({
                    url: '/collect/del/',// 跳转到 action, 换成自己的接口
                    data:{"houseKeeperId":id,"state":"2"},
                    type: 'post',
                    cache: false,
                    dataType: 'json', // 不一定非要json，可以是html，后台封好结构后，直接扔前台
                    success: function(respData) {
                        if(respData.result){
                            layer.msg('取消推荐成功!',{icon:1,time:2000});

                            setTimeout(function () { location.replace(location.href) }, 2000);

                        }else{
                            layer.msg('取消推荐失败!',{icon:2,time:1000});
                        }
                    }
                });
            });
        }
        /*推荐-添加*/
        function recommend_add(id){
            layer.confirm('确认要添加推荐吗？',function(index){
                $.ajax({
                    url: '/collect/add/',// 跳转到 action, 换成自己的接口
                    data:{"houseKeeperId":id,"state":"2"},
                    type: 'post',
                    cache: false,
                    dataType: 'json', // 不一定非要json，可以是html，后台封好结构后，直接扔前台
                    success: function(respData) {
                        if(respData.result){
                            layer.msg('添加推荐成功!',{icon:1,time:2000});
                            setTimeout(function () { location.replace(location.href) }, 2000);
                        }else{
                            layer.msg('添加推荐失败!',{icon:2,time:1000});
                        }
                    }
                });
            });
        }
        function edit(id){
            var isMy=$("#isMy").val();
            var url = "/houseKeeper/toEdit?houseKeeperId=";
            if(isMy=="my"){
                url="/houseKeeperMy/toEdit?houseKeeperId=";
            }
            var index = layer.open({
                type: 2,
                title: "人员编辑",
                content: url+id
            });
            layer.full(index);
        }
        /*收藏-删除*/
        function collect_del(id,houseKeeperMyId){
            layer.confirm('确认要取消收藏吗？',function(index){
                $.ajax({
                    url: '/collect/del/',// 跳转到 action, 换成自己的接口
                    data:{"houseKeeperId":id,"houseKeeperMyId":houseKeeperMyId,"state":"1"},
                    type: 'post',
                    cache: false,
                    dataType: 'json', // 不一定非要json，可以是html，后台封好结构后，直接扔前台
                    success: function(respData) {
                        if(respData.result){
                            layer.msg('取消收藏成功!',{icon:1,time:2000});

                            setTimeout(function () { location.replace(location.href) }, 2000);

                        }else{
                            layer.msg('取消收藏失败!',{icon:2,time:1000});
                        }
                    }
                });
            });
        }
        /*收藏-添加*/
        function collect_add(id){
            layer.confirm('确认要添加收藏吗？',function(index){
                $.ajax({
                    url: '/collect/add/',// 跳转到 action, 换成自己的接口
                    data:{"houseKeeperId":id,"state":"1"},
                    type: 'post',
                    cache: false,
                    dataType: 'json', // 不一定非要json，可以是html，后台封好结构后，直接扔前台
                    success: function(respData) {
                        if(respData.result){
                            layer.msg('添加收藏成功!',{icon:1,time:2000});
                            setTimeout(function () { location.replace(location.href) }, 2000);
                        }else{
                            layer.msg('添加收藏失败!',{icon:2,time:1000});
                        }
                    }
                });
            });
        }
        $(function(){
            //$(".preview").Huipreview();
            $(".rollpicshow").jCarouselLite({
                auto: 2000, /*自动播放间隔时间*/
                speed: 500, /*速度*/
                btnNext:".next",/*向前滚动*/
                btnPrev:".prev",/*向后滚动*/
                visible:1 /*显示数量*/
            });
            var isMy=$("#isMy").val();
            var url = "/houseKeeper/show/";
            if(isMy=="my"){
                url="/houseKeeperMy/show/";
			}
        	getDataList(houseKeeperId,url);
        });
	</script>
</body>
</html>
